< previous page page_609 next page >

Page 609
8694cbadb9b1ef7075903f6f95fc1db2.gif
2. The File Transfer control allows you to add the code that would download or upload files from the Internet.
8694cbadb9b1ef7075903f6f95fc1db2.gif
3. Visual Basic is the programming language used to create Windows applications, whereas VBScript is a subset of the Visual Basic language used to enhance HTML Web pages.
Exercise
This Web page is created by using HTML and VBScript, as shown in Listing A.6.
LISTING A.6. EXERCISE.HTMSAMPLE CODE FOR DAY 14'S EXERCISE.

8694cbadb9b1ef7075903f6f95fc1db2.gif
<HTML>
<HEAD>
<TITLE>VBScript/HTML Exercise Page</TITLE>
<SCRIPT LANGUAGE=VBScript>
<!--
Option Explicit

Sub SayHello_OnClick()
    MsgBox Hello  & Form1.fname.Value &   & Form1.lname.Value & _
      , are you ready to compute?, 36
End Sub
Sub Reset_OnClick()
    Form1.fname.Value = 
    Form1.lname.Value = 
    msgbox Text has been Cleared.,36
End Sub
-->
</SCRIPT>
</HEAD>

<BODY>
<BR>
<H1> This is the exercise for Chapter 13</H1>
<H2> Please enter your first and last name</H2>
<H3> A message box will be displayed.</H3>
<P>
<HR>
<FORM NAME=Form1>
     <INPUT NAME=FName TYPE=TEXT VALUE=>
     <INPUT NAME=LName TYPE=TEXT VALUE=>
     <INPUT NAME=SayHello TYPE=BUTTON VALUE=Say Hello!>
     <INPUT NAME=Reset TYPE=BUTTON VALUE=Reset>
</FORM>

</BODY>
</HTML>

 
< previous page page_609 next page >

If you like this book, buy it!